//package com.yishun.springboot.web;
//
//import javax.annotation.Resource;
//import org.springframework.util.StringUtils;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.alibaba.fastjson.JSONObject;
//import com.alibaba.fastjson.serializer.SerializerFeature;
//import com.yinquan.util.ResultUtils;
//import com.yishun.springboot.service.GongWuSuTimedUploadTspRealTimeDataService;
//
//@RestController
//@RequestMapping("cityTsp")
//public class GwsCityTspController {
//
//	@Resource
//	GongWuSuTimedUploadTspRealTimeDataService dataService;
//
//	@RequestMapping("/uploadTspDetailed")
//	public String uploadCityGwsTspDetailed(@RequestBody JSONObject paramJsonObject) {
//
//		String deviceCode = paramJsonObject.getString("deviceCode");
//		String apiKey = paramJsonObject.getString("apiKey");
//		String projectCode = paramJsonObject.getString("projectCode");
//		String engCode = paramJsonObject.getString("engCode");
//		String projectName = paramJsonObject.getString("projectName");
//
//		if (StringUtils.isEmpty(deviceCode) || StringUtils.isEmpty(apiKey) || StringUtils.isEmpty(projectCode)
//				|| StringUtils.isEmpty(engCode) || StringUtils.isEmpty(projectName)) {
//
//			return JSONObject.toJSONString(ResultUtils.jsonFail(400), SerializerFeature.WriteMapNullValue);
//		}
//
//		String res = dataService.updateGongWuShuTspDetailedData(deviceCode, projectCode, engCode, apiKey, projectName);
//
//		return res;
//	}
//
//}
